import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue';
import ActiveInfo from '../views/ActiveInfo.vue'
import AssembleInfo from '../views/AssembleInfo.vue'
import LackInfo from '../views/LackInfo.vue'
import Login from "@/views/login/index.vue";
import dyrslogin from "@/views/dyrslogin.vue";
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      title: '东阳市人力资源影视产业协同平台'
    }
  },
  {
    path: '/login',
    name: 'Login',
    component: Login,
    meta: {
      title: '登录'
    }
  },
  {
    path: '/activeInfo',
    name: 'ActiveInfo',
    component: ActiveInfo,
    meta: {
      title: '东阳市人力资源·影视产业活跃指数'
    }
  },
  {
    path: '/assembleInfo',
    name: 'AssembleInfo',
    component: AssembleInfo,
    meta: {
      title: '东阳市人力资源·影视产业集聚指数'
    }
  },
  {
    path: '/lackInfo',
    name: 'LackInfo',
    component: LackInfo,
    meta: {
      title: '东阳市人力资源·影视产业紧缺指数'
    }
  },
  {
    path: '/dyrslogin',
    name: 'dyrslogin',
    component: dyrslogin,
    meta: {
      title: '登录'
    }
  },
  // {
  //   path: '/test',
  //   name: 'test',
  //   component: Test,
  //   meta: {
  //     title: '东阳市影视产业·人力资源紧缺指数'
  //   }
  // }
]

const router = new VueRouter({
  mode: 'hash',
  base: process.env.BASE_URL,
  routes
})

export default router
